package com.cxm.helper.config.web;

import com.cxm.helper.util.constant.RabbitMqConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: chenximeng
 * @date: 2022/12/3 09:26
 */
@Configuration
public class RabbitMqConfig {
    @Bean
    public Queue messageSaveQueue() {
        return new Queue(RabbitMqConstant.MESSAGE_SAVE_QUEUE);
    }

    @Bean
    public Queue messageReadQueue() {
        return new Queue(RabbitMqConstant.MESSAGE_READ_QUEUE);
    }
}
